home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
3_1.lha
/
3_1
/
3_1.c
next >
Wrap
C/C++ Source or Header
|
1993-08-08
|
365b
|
20 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
int i = 0;
while (i < max_length)
{
if (input_line[i] == '?')
quest_count++;
i++;
}
char *p = input_line;
while (p < &input_line[max_length])
{
if (*p=='?')
quest_count++;
p++;
}